﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PCclient2._0
{
    public partial class copying : Form
    {
        public copying()
        {
            InitializeComponent();
            progressBar1.Maximum = 100;
        }

        public void setText(string name, int size)
        {
            copyingName.Text = name;
            copyingSize.Text = size.ToString() + "%";
        }

        public void setProgress(int progress)
        {
            if (progress > 100)
            {
                MessageBox.Show("超过");
            }
            else
            {
                progressBar1.Value = progress;
            }
            
        }

    }
}
